strongswan: add build dependency for python and explicitly use python3
authorJosef Schlehofer <[email protected]>
Fri, 31 Oct 2025 12:01:26 +0000 (13:01 +0100)
committerPhilip Prindeville <[email protected]>
Sat, 1 Nov 2025 16:42:13 +0000 (10:42 -0600)
Before:
checking for python... /myworkingdir/build/staging_dir/host/bin/python
checking for python version... xcode-select: Failed to locate 'python', requesting installation of command line developer tools.
checking for python platform... xcode-select: Failed to locate 'python', requesting installation of command line developer tools.
checking for GNU default python prefix... ${prefix}
checking for GNU default python exec_prefix... ${exec_prefix}
checking for python script directory (pythondir)... xcode-select: Failed to locate 'python', requesting installation of command line developer tools.
checking for python extension module directory (pyexecdir)... xcode-select: Failed to locate 'python', requesting installation of command line developer tools.

After:
checking for python version... 3.11
checking for python platform... darwin
checking for GNU default python prefix... ${prefix}
checking for GNU default python exec_prefix... ${exec_prefix}
checking for python script directory (pythondir)... ${PYTHON_PREFIX}/lib/python3.11/site-packages
checking for python extension module directory (pyexecdir)... ${PYTHON_EXEC_PREFIX}/lib/python3.11/site-packages

Signed-off-by: Josef Schlehofer <[email protected]>
net/strongswan/Makefile

index 40962f96d74fd772341daa58c39a7424dd63efbb..bf121f97dba1ecdd76d537e4a7711a7cc3c83150 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=strongswan
 PKG_VERSION:=6.0.2
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=https://download.strongswan.org/ https://download2.strongswan.org/
@@ -108,6 +108,7 @@ PKG_CONFIG_DEPENDS:= \
 PKG_FIXUP:=autoreconf
 PKG_INSTALL:=1
 PKG_BUILD_PARALLEL:=1
+PKG_BUILD_DEPENDS:=python3/host
 
 include $(INCLUDE_DIR)/package.mk
 # strongswan-mod-mysql needs iconv
@@ -458,6 +459,7 @@ CONFIGURE_ARGS+= \
        --enable-mgf1 \
        --enable-mediation \
        --with-systemdsystemunitdir=no \
+       PYTHON="python3" \
        $(if $(CONFIG_PACKAGE_strongswan-charon-cmd),--enable-cmd,--disable-cmd) \
        $(if $(CONFIG_PACKAGE_strongswan-mod-gmpdh),--enable-gmpdh,) \
        $(if $(CONFIG_PACKAGE_strongswan-pki),--enable-pki,--disable-pki) \